package pl.maciejziarko.mshare.security;

import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.UnknownAccountException;

/**
 * @author Maciej Ziarko
 */
public interface SecurityService {

    void login(AuthenticationToken authenticationToken) throws UnknownAccountException, AuthenticationException;

    void logout() throws AuthenticationException;
    
    String getUsername() throws AuthenticationException;

}
